// 封装楼宇的api
import request from '@/utils/request'

// 楼宇列表查询
export const getBuildingListApi = (params) => {
  return request.get('/park/building', { params })
}
// 添加楼宇
export const addBuildingApi = (data) => {
  return request.post('/park/building', data)
}
// 楼宇详情，数据回显时调用
export const getBuildingDetailApi = (id) => request.get(`/park/building/${id}`)
// 修改
export const updateBuildingApi = (data) => request.put(`/park/building`, data)
// 删除
export const delBuildingApi = (id) => request.delete(`/park/building/${id}`)
